﻿@using MVC.Models;
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Select</title>
    <style type="text/css">
        #tbList {
            border: 1px solid #0094ff;
            width: 1500px;
            margin: 10px auto;
            border-collapse: collapse;
        }

            #tbList th, td {
                border: 1px solid #0094ff;
                padding: 10px;
            }
    </style>
    <script type="text/javascript">
        function del(id) {
            if (confirm("你确定要删除吗")) {
                window.location = "/Select/Del/" + id;
            }
        }
    </script>
</head>
<body>
    <table id="tblist">
        <tr>
            <td>wardCode</td>
            <td>科室简称</td>
            <td>wardName</td>
            <td>PYCode</td>
            <td>isEnabled</td>
            <td>操作</td>
        </tr>
        @foreach (wardDict item in ViewData["DataList"] as List<wardDict>)
        {
            <tr>
                <td>@item.wardCode</td>
                <td>@item.科室简称</td>
                <td>@item.wardName</td>
                <td>@item.PYCode</td>
                <td>@item.isEnabled</td>
                <td>
                    <a href="javascript:del(@item.wardCode)">删除</a>
                    <a href="/Select/modif/@item.wardCode">修改</a>
                </td>
            </tr>
        }
    </table>
    <div>
        
    </div>
</body>
</html>
